package com.thuan.db;

import java.util.List;
import pojo.Privilege;
import pojo.UserAccount;


public interface IUserDAO {
	List<UserAccount> getUsers();
	int addUser(String username, String password, String name, int level);
	UserAccount findUser(String username);
	boolean updatePassword(String username,String password);
	Privilege findPrivilege(int level);
	boolean updateUserAccount(String username, String password, String name,
			int score, int win, int lose, Privilege privilege);
	boolean addUserAccount(String username, String password, String name,
			int score, int win, int lose, Privilege privilege);
	void updateSigninTime(String username);
	List<UserAccount> listUserAccounts();
	List<Privilege> listPrivileges();
	
}
